package xmlws.router;

import java.util.HashMap;
import java.util.Map;
import xmlws.actions.IndexAction;
import xmlws.actions.LogoutAction;

/**
 *
 * @author marya
 */
public class Router {
    private static Map<String, Class> uriToAction;
    static {
        uriToAction = new HashMap<String, Class>();
        
        uriToAction.put("/index.html", IndexAction.class);
        uriToAction.put("/logout.html", LogoutAction.class);

    }

    public static Class getActionByUri(String uri) {
        return uriToAction.get(uri);
    }
}
